<div class="primary">
   <div class="wrap">
      <?php include ROOT.'/home/view/view_bar.php'?>
      <div class="breadcrumb">
         <span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="itemscope" class="crumb_item">
            <a itemprop="url" rel="up" class="crumb" href="/"><span itemprop="title">Trang chủ</span></a>
            <span class="arrow"> &gt; </span>
         </span>
         <span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="itemscope" class="crumb_item">
            <a itemprop="url" rel="up" class="crumb" href="/may-tinh-bang/"><span itemprop="title">Máy tính bảng</span></a>
            <span class="arrow"> &gt; </span>
         </span>
         <span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="itemscope" class="crumb_item">
            <a itemprop="url" rel="up" class="crumb" href="/may-tinh-bang-<?=$product_cat['cat_alias']?>/"><span itemprop="title"><?=$product_cat['cat_name']?></span></a>
            <span class="arrow"> &gt; </span>
         </span>
         <span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope="itemscope" class="crumb_item">
            <a itemprop="url" rel="up" class="crumb" href="<?=url_product_detail($product)?>"><span itemprop="title"><?=$product['pro_name']?></span></a>
         </span>
      </div>
      <div class="prodetail">
         <div class="prodetail_title">
            <h1><?=$product['pro_name']?></h1>
            <span class="prodetail_color">
            <?php
            if($product['pro_colors'] != '') {
               $pro_colors = json_decode(base64_decode($product['pro_colors']),1);
               ?>
               <span>(Có <?=count($pro_colors)?> màu: </span>
               <?
               foreach($pro_colors as $color) {
                  ?>
                  <span class="color_item" style="background: <?=$color['attribute_color']?>;" data-price="<?=$color['attribute_price']?>"></span>
                  <?
               }
               ?>
               <span>)</span>
               <?
            }
            ?>
               
            </span>
         </div>
         <div class="prodetail_left">
            <div class="prodetail_slide">
               <div class="prodetail_slide_item prodetail_slide_image" style="display: block;">
                  <ul class="bjqs">
                  <?php
                  if($product['pro_slides'] != '') {
                     $pro_slides = explode(',',$product['pro_slides']);
                     foreach($pro_slides as $slide) {
                        $curr_img = img_by_id($slide,'large');
                        ?>
                        <li><img src="<?=$curr_img['src']?>" title="<?=$curr_img['caption']?>" alt="<?=$curr_img['alt']?>" /></li>
                        <?
                     }
                  }else {
                     ?>
                     <li><img src="<?=$product['pro_image']?>" title="<?=$product['pro_name']?>" alt="<?=$product['pro_name']?>" /></li>
                     <?
                  }
                  ?>
                  </ul>
               </div>
               <script class="secret-source">
               jQuery(document).ready(function($) {
                  var windowWidth = $(window).width();
                  var slidehomewidth;
                  var slidehomeheight;
                  if(windowWidth >= 980) {
                     slidehomewidth = 700;
                     slidehomeheight = 390;
                  }else if(windowWidth > 767 && windowWidth < 980) {
                     slidehomewidth = 700;
                     slidehomeheight = 390;
                  }else {
                     slidehomewidth = windowWidth - windowWidth*0.01;
                     slidehomeheight = (390/700)*slidehomewidth;
                  }
                  $('.prodetail_slide_image').bjqs({
                     animtype : 'slide',
                     height      : 390,
                     width       : 700,
                     nexttext : ' ', // Text for 'next' button (can use HTML)
                     prevtext : ' ', // Text for 'previous' button (can use HTML)
                     centermarkers : false,
                     responsive  : true
                  });
                  $('.prodetail_slide_image ol.bjqs-markers li a').html('');
               });
               </script>
               <div class="prodetail_slide_item prodetail_slide_video" style="display: none;">
               <?php
               $pro_videos = explode(';',$product['pro_videos']);
               $pro_videos = array_filter($pro_videos);
               if(count($pro_videos) > 0) {
                  $num_video = 0;
                  foreach($pro_videos as $video) {
                     $num_video++;
                     ?>
                     <div class="cont cont<?=$num_video?>" style="<?=$num_video == 1 ? 'display: block;' : 'display: none;'?>">
                        <?php if($num_video == 1):?>
                        <iframe width="100%" height="100%" src="http://www.youtube.com/embed/<?=getYouTubeIdFromURL($video)?>?rel=0" frameborder="0" allowfullscreen=""></iframe>
                        <?php endif;?>
                     </div>
                     <?php
                  }
                  ?>
                  <ul class="listthums">
                  <?php
                  $num_video = 0;
                  foreach($pro_videos as $video) {
                     $num_video++;
                     $id_video = getYouTubeIdFromURL($video);
                     ?>
                     <li>
                        <a class="thumvideo<?=$num_video == 1 ? ' active' : ''?>" data-cl="cont<?=$num_video?>" data-link="<?=$id_video?>">
                           <img class="lazy" alt="Video sản phẩm <?=$product['pro_name'].' '.$num_video?>" src="http://img.youtube.com/vi/<?=$id_video?>/1.jpg" />
                        </a>
                     </li>
                     <?
                  }
                  ?>
                  </ul>
                  <?
               }
               ?>
               </div>
               <div class="clear"></div>
               <div class="prodetail_slide_control">
                  <div class="prodetail_slide_control_item">
                     <a class="thums action_slide_image active" href="javascript:void(0)" title="Danh sách hình ảnh">
                        <b></b>
                        <i class="icon_slimage"></i>
                        <span>Hình ảnh</span>
                     </a>
                  </div>
                  <div class="prodetail_slide_control_item">
                     <a class="thums action_slide_video" href="javascript:void(0)" title="Danh sách video">
                        <b></b>
                        <i class="icon_slvideo"></i>
                        <span>Video</span>
                     </a>
                  </div>
               </div>
               <div class="count_cmt">
                  <a href="#comment">5.618 Bình luận</a>
               </div>
               <div class="clear"></div>
            </div><!-- prodetail_slide -->
            <div class="configuration">
               <div class="configuration_left">
                  <?=$product['pro_package']?>&nbsp;
               </div>
               <div class="configuration_right">
                  <ul class="parametdesc">
                     <li><b>Chức năng, cấu hình</b> <?=$product['pro_name']?></li>
                     <li class="even"><span>Màn hình:</span><strong><?=$product['pro_display_standard']?>, <?=$product['pro_display_width']?>", <?=$product['pro_display_resolution']?></strong>
                     </li>
                     <li class="odd"><span>CPU:</span><strong><?=$product['pro_cpuram_chipset']?>, <?=$product['pro_cpuram_core']?>, <?=$product['pro_cpuram_speed']?></strong>
                     </li>
                     <li class="even"><span>RAM</span><strong><?=$product['pro_cpuram_ram']?></strong>
                     </li>
                     <li class="odd"><span>Hệ điều hành:</span><strong><?=$product['pro_general_os']?></strong>
                     </li>
                     <li class="even"><span>Camera chính:</span><strong><?=$product['pro_cam_primary']?>, <?=$product['pro_cam_filming']?></strong>
                     </li>
                     <li class="odd"><span>Camera phụ:</span><strong><?=$product['pro_cam_second']?></strong>
                     </li>
                     <li class="even"><span>Bộ nhớ trong:</span><strong><?=$product['pro_storage_rom']?></strong>
                     </li>
                     <li class="odd"><span>Thẻ nhớ ngoài:</span><strong><?=$product['pro_storage_memorycardsupport']?></strong>
                     </li>
                     <li class="even bordernone"><span>Dung lượng pin:</span><strong><?=$product['pro_pin_capacity']?></strong>
                     </li>
                  </ul>
               </div>
               <div class="clear"></div>
               <div class="tableparameter">
                  <button class="btnparam1 open show_param"><i class="icon-listparam"></i>Xem cấu hình chi tiết</button>
                  <div class="tableparamexpan dropdown dropcontent">
                     <i class="icon-arrparam"></i>
                     <!-- table -->
                     <div class="clr"></div>
                     <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;" class="product-compare">
                        <tbody>
                           <tr class="r">
                              <td rowspan="2" valign="top" class="g">
                                 <div class="gh">Thông tin chung</div>
                              </td>
                              <td id="prop_72" class="p f eph" onclick="ShowHelp(72, 2);">Hệ điều hành</td>
                              <td id="c72_1" class="v f"><?=$product['pro_general_os']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_75" class="ph eph" onclick="ShowHelp(75, 2);">Ngôn ngữ</div>
                              </td>
                              <td id="c75_1" class="v"><?=$product['pro_general_language']?></td>
                           </tr>
                           <tr class="r">
                              <td rowspan="6" valign="top" class="g">
                                 <div class="gh">Màn hình</div>
                              </td>
                              <td class="p f">Loại màn hình</td>
                              <td id="c6459_1" class="v f"><?=$product['pro_display_type']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div class="ph">Màu màn hình</div>
                              </td>
                              <td id="c6239_1" class="v"><?=$product['pro_display_color']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_77" class="ph eph" onclick="ShowHelp(77, 2);">Chuẩn màn hình</div>
                              </td>
                              <td id="c77_1" class="v"><?=$product['pro_display_standard']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_78" class="ph eph" onclick="ShowHelp(78, 2);">Độ phân giải</div>
                              </td>
                              <td id="c78_1" class="v"><?=$product['pro_display_resolution']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_79" class="ph eph" onclick="ShowHelp(79, 2);">Màn hình rộng</div>
                              </td>
                              <td id="c79_1" class="v"><?=$product['pro_display_width']?>"</td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_80" class="ph eph" onclick="ShowHelp(80, 2);">Công nghệ cảm ứng</div>
                              </td>
                              <td id="c80_1" class="v"><?=$product['pro_display_induction']?></td>
                           </tr>
                           <tr class="r">
                              <td rowspan="6" valign="top" class="g">
                                 <div class="gh">Chụp hình &amp; Quay phim</div>
                              </td>
                              <td id="prop_27" class="p f eph" onclick="ShowHelp(27, 2);">Camera sau</td>
                              <td id="c27_1" class="v f"><?=$product['pro_cam_primary']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_29" class="ph eph" onclick="ShowHelp(29, 2);">Camera trước</div>
                              </td>
                              <td id="c29_1" class="v"><?=$product['pro_cam_second']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div class="ph">Đèn Flash</div>
                              </td>
                              <td id="c6460_1" class="v"><?=$yesno[$product['pro_cam_flash']]?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_28" class="ph eph" onclick="ShowHelp(28, 2);">Tính năng camera</div>
                              </td>
                              <td id="c28_1" class="v"><?=$product['pro_cam_feature']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_31" class="ph eph" onclick="ShowHelp(31, 2);">Quay phim</div>
                              </td>
                              <td id="c31_1" class="v"><?=$product['pro_cam_filming']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_30" class="ph eph" onclick="ShowHelp(30, 2);">Videocall</div>
                              </td>
                              <td id="c30_1" class="v"><?=$yesno[$product['pro_cam_videocall']]?></td>
                           </tr>
                           <tr class="r">
                              <td rowspan="5" valign="top" class="g">
                                 <div class="gh">CPU &amp; RAM</div>
                              </td>
                              <td id="prop_51" class="p f eph" onclick="ShowHelp(51, 2);">Tốc độ CPU</td>
                              <td id="c51_1" class="v f"><?=$product['pro_cpuram_speed']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div class="ph">Số nhân</div>
                              </td>
                              <td id="c6461_1" class="v"><?=$product['pro_cpuram_core']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_6059" class="ph eph" onclick="ShowHelp(6059, 2);">Chipset</div>
                              </td>
                              <td id="c6059_1" class="v"><?=$product['pro_cpuram_chipset']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div class="ph">RAM</div>
                              </td>
                              <td id="c50_1" class="v"><?=$product['pro_cpuram_ram']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_6079" class="ph eph" onclick="ShowHelp(6079, 2);">Chip đồ họa (GPU)</div>
                              </td>
                              <td id="c6079_1" class="v"><?=$product['pro_cpuram_graphic']?></td>
                           </tr>
                           <tr class="r">
                              <td rowspan="4" valign="top" class="g">
                                 <div class="gh">Bộ nhớ &amp; Lưu trữ</div>
                              </td>
                              <td id="prop_54" class="p f eph" onclick="ShowHelp(54, 2);">Danh bạ</td>
                              <td id="c54_1" class="v f"><?=$product['pro_storage_contacts']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_49" class="ph eph" onclick="ShowHelp(49, 2);">Bộ nhớ trong (ROM)</div>
                              </td>
                              <td id="c49_1" class="v"><?=$product['pro_storage_rom']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_52" class="ph eph" onclick="ShowHelp(52, 2);">Thẻ nhớ ngoài</div>
                              </td>
                              <td id="c52_1" class="v"><?=$product['pro_storage_memorycard']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_53" class="ph eph" onclick="ShowHelp(53, 2);">Hỗ trợ thẻ tối đa</div>
                              </td>
                              <td id="c53_1" class="v"><?=$product['pro_storage_memorycardsupport']?></td>
                           </tr>
                           <tr class="r">
                              <td rowspan="3" valign="top" class="g">
                                 <div class="gh">Thiết kế &amp; Trọng lượng</div>
                              </td>
                              <td id="prop_73" class="p f eph" onclick="ShowHelp(73, 2);">Kiểu dáng</td>
                              <td id="c73_1" class="v f"><?=$product['pro_design_style']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_88" class="ph eph" onclick="ShowHelp(88, 2);">Kích thước</div>
                              </td>
                              <td id="c88_1" class="v"><?=$product['pro_design_size']?> mm</td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_100" class="ph eph" onclick="ShowHelp(100, 2);">Trọng lượng (g)</div>
                              </td>
                              <td id="c100_1" class="v"><?=$product['pro_design_weight']?></td>
                           </tr>
                           <tr class="r">
                              <td rowspan="3" valign="top" class="g">
                                 <div class="gh">Thông tin pin</div>
                              </td>
                              <td class="p f">Loại pin</td>
                              <td id="c83_1" class="v f"><?=$product['pro_pin_type']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_84" class="ph eph" onclick="ShowHelp(84, 2);">Dung lượng pin</div>
                              </td>
                              <td id="c84_1" class="v"><?=$product['pro_pin_capacity']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div class="ph">Pin có thể tháo rời</div>
                              </td>
                              <td id="c6462_1" class="v"><?=$yesno[$product['pro_pin_removable']]?></td>
                           </tr>
                           <tr class="r">
                              <td rowspan="13" valign="top" class="g">
                                 <div class="gh">Kết nối &amp; Cổng giao tiếp</div>
                              </td>
                              <td id="prop_65" class="p f eph" onclick="ShowHelp(65, 2);">3G</td>
                              <td id="c65_1" class="v f"><?=$product['pro_connect_3g']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div class="ph">4G</div>
                              </td>
                              <td id="c6463_1" class="v"><?=$product['pro_connect_4g']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div class="ph">Loại Sim</div>
                              </td>
                              <td id="c6339_1" class="v"><?=$product['pro_connect_simtype']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_60" class="ph eph" onclick="ShowHelp(60, 2);">Khe gắn Sim</div>
                              </td>
                              <td id="c60_1" class="v"><?=$product['pro_connect_duasim']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_66" class="ph eph" onclick="ShowHelp(66, 2);">Wifi</div>
                              </td>
                              <td id="c66_1" class="v"><?=$product['pro_connect_wifi']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_68" class="ph eph" onclick="ShowHelp(68, 2);">GPS</div>
                              </td>
                              <td id="c68_1" class="v"><?=$product['pro_connect_gps']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_69" class="ph eph" onclick="ShowHelp(69, 2);">Bluetooth</div>
                              </td>
                              <td id="c69_1" class="v"><?=$product['pro_connect_bluetouth']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_61" class="ph eph" onclick="ShowHelp(61, 2);">GPRS/EDGE</div>
                              </td>
                              <td id="c61_1" class="v"><?=$yesno[$product['pro_connect_gprs']]?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_48" class="ph eph" onclick="ShowHelp(48, 2);">Jack tai nghe</div>
                              </td>
                              <td id="c48_1" class="v"><?=$product['pro_connect_jack']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div class="ph">NFC</div>
                              </td>
                              <td id="c6464_1" class="v"><?=$yesno[$product['pro_connect_nfc']]?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_71" class="ph eph" onclick="ShowHelp(71, 2);">Kết nối USB</div>
                              </td>
                              <td id="c71_1" class="v"><?=$product['pro_connect_usb']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div class="ph">Kết nối khác</div>
                              </td>
                              <td id="c5199_1" class="v"><?=$product['pro_connect_other']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div class="ph">Cổng sạc</div>
                              </td>
                              <td id="c85_1" class="v"><?=$product['pro_connect_chargprot']?></td>
                           </tr>
                           <tr class="r">
                              <td rowspan="6" valign="top" class="g">
                                 <div class="gh">Giải trí &amp; Ứng dụng</div>
                              </td>
                              <td id="prop_32" class="p f eph" onclick="ShowHelp(32, 2);">Xem phim</td>
                              <td id="c32_1" class="v f"><?=$product['pro_entertainment_movie']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_33" class="ph eph" onclick="ShowHelp(33, 2);">Nghe nhạc</div>
                              </td>
                              <td id="c33_1" class="v"><?=$product['pro_entertainment_player']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_36" class="ph eph" onclick="ShowHelp(36, 2);">Ghi âm</div>
                              </td>
                              <td id="c36_1" class="v"><?=$yesno[$product['pro_entertainment_recording']]?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_6039" class="ph eph" onclick="ShowHelp(6039, 2);">Giới hạn cuộc gọi</div>
                              </td>
                              <td id="c6039_1" class="v">Không giới hạn</td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div id="prop_34" class="ph eph" onclick="ShowHelp(34, 2);">FM radio</div>
                              </td>
                              <td id="c34_1" class="v"><?=$product['pro_entertainment_fm']?></td>
                           </tr>
                           <tr>
                              <td class="p">
                                 <div class="ph">Chức năng khác</div>
                              </td>
                              <td id="c43_1" class="v"><?=$product['pro_entertainment_other']?></td>
                           </tr>
                        </tbody>
                     </table>
                     <div class="clr"></div>
                     <button class="btnparam2 close"><i class="icon-closexpan"></i>Đóng cấu hình chi tiết</button>
                  </div>
               </div>
            </div>
            <div class="prodetail_content">
               <div class="prodetail_content_wrap">
                  <?=$product['pro_details']?>&nbsp;
               </div>
               <button type="button" class="click-show-more">Xem thêm đánh giá chi tiết ▼</button>
            </div>
            <div id="comment" class="prodetail_comment">
               <h4>Mời bạn bình luận hoặc đặt câu hỏi về <span>Samsung Galaxy Note 4</span></h4>
            </div>
         </div><!-- prodetail_left -->
         <div class="prodetail_right">
            <div class="prodetail_right_wrap">
               <p class="pro_instock_status"><?=$list_instock_status[$product['pro_instock_status']]?></p>
               <p class="pro_price" data-price="<?=$product['pro_price']?>"><?=format_price($product['pro_price'])?></p>
               <div class="pro_warranty"><b>Bảo hành:</b> <?=$product['pro_warranty']?></div>
               <?php if($product['pro_goldwarranty'] != 0):?>
               <div class="pro_goldwarranty" data-price="<?=$product['pro_goldwarranty']?>">
                  <input type="checkbox" class="goldwarranty" value="<?=$product['pro_goldwarranty']?>"/>
                  <div title="<b>Bảo hành vàng</b> <br />Chế độ bảo hành cao nhất, 1 đổi 1 trong vòng 15 ngày nếu máy có lỗi do nhà sản xuất.<br /> Bảo hành 12 tháng phần cứng bao gồm cả nguồn và màn hình.">Bảo hành vàng </div>
               </div>
               <?php endif;?>
               <div class="pro_promotion">
                  <?=nl2br($product['pro_promotion'])?>
               </div>
               <a class="pro_order_action" href="javascript:void(0);" onclick="showpopup(<?=$product['pro_id']?>,'products','<?=$product['pro_name']?>');">
                   ĐẶT MUA HÀNG TẠI CỬA HÀNG
               </a>
               <div class="pro_hotline">
                  Điên thoại: <strong>0466.565.565</strong> - Hotline: <strong>0968.655.655</strong><br>
                  <span>(8:30 - 20:00 hàng ngày)</span>
              </div>
            </div>
           <div class="prodetail_box_sidebar">
               <div class="prodetail_right_wrap">
                  <div class="title_box">Dịch vụ sửa chữa</div>
                  <ul>
                  <?php
                  $list_hot_services = db_array('SELECT ser_id,ser_name,ser_alias,ser_image,ser_warranty FROM services WHERE ser_active = 1 ORDER BY ser_id DESC LIMIT 5');
                  foreach($list_hot_services as $service) {
                     ?>
                     <li>
                        <a class="img" href="<?=url_services_detail($service)?>">
                           <img src="<?=img_link($service['ser_image'],'small')?>" alt="<?=$service['ser_name']?>" />
                        </a>
                        <a href="<?=url_services_detail($service)?>"><p class="title"><?=$service['ser_name']?></p></a>
                        <p>Bảo hành: <?=$service['ser_warranty']?></p>
                     </li>
                     <?
                  }
                  ?>
                  </ul>
                  <a class="link_box" href="<?=url_services_cat()?>">Xem tất cả dịch vụ</a>
               </div>
            </div>
            <?php
            if($product['pro_tags'] != '') {
               $list_tags = explode(',',$product['pro_tags']);
               
               ?>
               <div class="pro_tags">
                  <span>Từ khóa liên quan: </span>
               <?
               foreach($list_tags as $tags) {
                  ?>
                  <a href="<?=url_tags($tags)?>" target="_blank"><?=$tags?></a>
                  <?
               }
               ?>
               </div>
               <?
            }
            ?>
            <?php
            if($product['pro_accessories'] != '') {
               $pro_accessories = db_array('SELECT acc_id,acc_name,acc_alias,acc_image,acc_price
                                       FROM accessories
                                       WHERE acc_active = 1 AND acc_id IN('.$product['pro_accessories'].')
                                       LIMIT 4');
            ?>
            <div class="pro_accessories">
               <div class="prodetail_right_wrap">
                  <h3><b>Phụ kiện hot</b> cho <?=$product['pro_name']?></h3>
               <?php
               foreach($pro_accessories as $access) {
                  ?>
                  <a target="_blank" href="<?=url_accessories_detail($access)?>" title="<?=$access['acc_name']?>">
                     <img width="80" heigth="80" class="lazy" alt="<?=$access['acc_name']?>" src="<?=img_link($access['acc_image'],'small')?>" style="display: block;">
                     <h3><?=$access['acc_name']?> </h3> <span><?=format_price($access['acc_price'])?></span>
                  </a>
                  <?
               }
               ?>
                  <a class="floatr" target="_blank" href="<?=url_accessories_cat()?>" title="Xem thêm phụ kiện khác">Xem thêm phụ kiện khác »</a>
               </div>
            </div>
            <?
            }
            ?>
         </div>
      </div>
   </div>
</div>